Package-level declarations

Functions

Link copied to clipboard
fun <Model> FormController<Model>.FormFileField(modelProperty: KMutableProperty<List<PlatformFile>>, initialValue: List<PlatformFile> = emptyList(), validator: Validator<List<PlatformFile>>? = modelProperty.validator(), enabled: Boolean = true, separator: String = "", implementation: FormFieldImplementation<List<PlatformFile>>)
fun <Model> FormController<Model>.FormFileField(modelProperty: KMutableProperty<List<PlatformFile>>, hint: Any? = modelProperty.hint(), instruction: Any? = null, initialValue: List<PlatformFile> = emptyList(), validator: Validator<List<PlatformFile>>? = modelProperty.validator(), enabled: Boolean = true, editable: Boolean = true, multiple: Boolean = false, heroIcon: @Composable () -> Unit? = { DefaultFileEntryHeroIcon() }, filePickerLauncher: @Composable (onAddFile: (PlatformFile) -> Unit) -> PickerResultLauncher = { onAddFile -> rememberFilePickerLauncher { it?.let { onAddFile(it) } } }, button: @Composable (onClick: () -> Unit) -> Unit = { TextButton(onClick = it, enabled = LocalFormBox.current.enabled) { Text("Browse") } }, fileView: @Composable (file: PlatformFile, onClickFile: (file: PlatformFile) -> Unit) -> Unit = { file, onClickFile -> InputChip( onClick = { if (editable) onClickFile(file) }, selected = true, enabled = editable, trailingIcon = { Icon(Icons.Close, contentDescription = "Clear selection") }, label = { Text(file.name) }, ) }, modifier: Modifier = Modifier.fillMaxWidth(), errorDisplay: @Composable (error: String) -> Unit = { StandardErrorDisplay(it) }, separator: String = "")